﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CinemaSystem
{
    public partial class guali : Form
    {
        public guali()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            glzc glzc = new glzc();
            glzc.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            string sqlstr = string.Format("select Administratorsname,Administratorspwd from Administrators where Administratorsname='{0}'and  Administratorspwd='{1}'", txtname.Text, txtpwd.Text);
            DataTable dt = DBHelper.GetDataTable(sqlstr);
            if (dt.Rows.Count > 0)
            {
                MainGLY MainGLY = new MainGLY();
                MainGLY.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("账号或密码错误！");
            }
        }

        private void guali_Load(object sender, EventArgs e)
        {
            skinEngine1.SkinFile = System.Environment.CurrentDirectory + "\\Skins\\Wave.ssk";
        }
    }
}
